
function columns(vm) {
  const cols = [
    {
      title: '序号',
      key: 'rowIndex',
      width: 60,
      align: 'center',
      customRender: function (text, row, index) {
        if (row.totalName == '合计') {
          return {
            children: vm.transformVnode('合计'),
            attrs: {
              colSpan: 2,
            },
          }
        } else {
          return (vm.ipagination.current - 1) * 10 + Number(index)
        }
      }
    },
    {
      title: '单位名称',
      align: 'center',
      dataIndex: 'dwmc',
      scopedSlots: { customRender: 'dwmc' },
      key: 'dwmc',
      width: 250,
      customRender: function (text, row, index) {
        if (row.totalName == '合计') {
          return {
            attrs: {
              colSpan: 0,
            },
          }
        } else
          return {
            children: vm.TransformVnodeEllipsis(text, row, 'dwmc',20)
          }
      }
    },
    {
      title: '生产管理中心专项治理数据',
      align: 'center',
      children: [
        {
          title: '久竣未结项目（调整后）',
          align: 'center',
          children: [
            {
              title: '总数',
              align: 'right',
              dataIndex: 'zxzlJjwjZs',
              key: 'zxzlJjwjZs',
              scopedSlots: { customRender: 'zxzlJjwjZs' },
            },
            {
              title: '路内',
              align: 'right',
              dataIndex: 'zxzlJjwjLn',
              key: 'zxzlJjwjLn',
              scopedSlots: { customRender: 'zxzlJjwjLn' },
            },
            {
              title: '路外',
              align: 'right',
              dataIndex: 'zxzlJjwjLw',
              key: 'zxzlJjwjLw',
              scopedSlots: { customRender: 'zxzlJjwjLw' },
            },
          ]
        },
        {
          title: '已竣未结项目',
          align: 'center',
          children: [
            {
              title: '总数',
              align: 'right',
              dataIndex: 'zxzlYjwjZs',
              key: 'zxzlYjwjZs',
              scopedSlots: { customRender: 'zxzlYjwjZs' },
            },
            {
              title: '路内',
              align: 'right',
              dataIndex: 'zxzlYjwjLn',
              key: 'zxzlYjwjLn',
              scopedSlots: { customRender: 'zxzlYjwjLn' },
            },
            {
              title: '路外',
              align: 'right',
              dataIndex: 'zxzlYjwjLw',
              key: 'zxzlYjwjLw',
              scopedSlots: { customRender: 'zxzlYjwjLw' },
            },
          ]
        },
        {
          align: 'center',
          slots: { title: 'endTimeTitleA' },
          children: [
            {
              title: '销减总数',
              align: 'right',
              dataIndex: 'zxzlZlmbXjzs',
              key: 'zxzlZlmbXjzs',
              scopedSlots: { customRender: 'zxzlZlmbXjzs' },
            },
            {
              title: '其中：路内',
              align: 'right',
              dataIndex: 'zxzlZlmbLn',
              key: 'zxzlZlmbLn',
              scopedSlots: { customRender: 'zxzlZlmbLn' },
            },
            {
              title: '其中：路外',
              align: 'right',
              dataIndex: 'zxzlZlmbLw',
              key: 'zxzlZlmbLw',
              scopedSlots: { customRender: 'zxzlZlmbLw' },
            },
          ]
        },
      ]
    },
    {
      title: '专项审计调查核实情况',
      align: 'center',
      children: [
        {
          title: '久竣未结项目',
          align: 'center',
          children: [
            {
              title: '总数',
              align: 'right',
              dataIndex: 'dchsqkJjwjZs',
              key: 'dchsqkJjwjZs',
              scopedSlots: { customRender: 'dchsqkJjwjZs' },
            },
            {
              title: '路内',
              align: 'right',
              dataIndex: 'dchsqkJjwjLn',
              key: 'dchsqkJjwjLn',
              scopedSlots: { customRender: 'dchsqkJjwjLn' },
            },
            {
              title: '路外',
              align: 'right',
              dataIndex: 'dchsqkJjwjLw',
              key: 'dchsqkJjwjLw',
              scopedSlots: { customRender: 'dchsqkJjwjLw' },
            },
            {
              title: '境外',
              align: 'right',
              dataIndex: 'dchsqkJjwjJw',
              key: 'dchsqkJjwjJw',
              scopedSlots: { customRender: 'dchsqkJjwjJw' },
            },
          ]
        },
        {
          title: '已竣未结项目',
          align: 'center',
          children: [
            {
              title: '总数',
              align: 'right',
              dataIndex: 'dchsqkYjwjZs',
              key: 'dchsqkYjwjZs',
              scopedSlots: { customRender: 'dchsqkYjwjZs' },
            },
            {
              title: '路内',
              align: 'right',
              dataIndex: 'dchsqkYjwjLn',
              key: 'dchsqkYjwjLn',
              scopedSlots: { customRender: 'dchsqkYjwjLn' },
            },
            {
              title: '路外',
              align: 'right',
              dataIndex: 'dchsqkYjwjLw',
              key: 'dchsqkYjwjLw',
              scopedSlots: { customRender: 'dchsqkYjwjLw' },
            },
            {
              title: '境外',
              align: 'right',
              dataIndex: 'dchsqkYjwjJw',
              key: 'dchsqkYjwjJw',
              scopedSlots: { customRender: 'dchsqkYjwjJw' },
            },
          ]
        },
        {
          title: '已竣已结未销号项目',
          align: 'center',
          children: [
            {
              title: '总数',
              align: 'right',
              dataIndex: 'dchsqkYjyjZs',
              key: 'dchsqkYjyjZs',
              scopedSlots: { customRender: 'dchsqkYjyjZs' },
            },
            {
              title: '路内',
              align: 'right',
              dataIndex: 'dchsqkYjyjLn',
              key: 'dchsqkYjyjLn',
              scopedSlots: { customRender: 'dchsqkYjyjLn' },
            },
            {
              title: '路外',
              align: 'right',
              dataIndex: 'dchsqkYjyjLw',
              key: 'dchsqkYjyjLw',
              scopedSlots: { customRender: 'dchsqkYjyjLw' },
            },
            {
              title: '境外',
              align: 'right',
              dataIndex: 'dchsqkYjyjJw',
              key: 'dchsqkYjyjJw',
              scopedSlots: { customRender: 'dchsqkYjyjJw' },
            },
          ]
        },
        {
          align: 'center',
          slots: { title: 'endTimeTitleB' },
          children: [
            {
              title: '销减总数',
              align: 'right',
              dataIndex: 'dchsqkWckqXjzs',
              key: 'dchsqkWckqXjzs',
              scopedSlots: { customRender: 'dchsqkWckqXjzs' },
            },
            {
              title: '其中：路内',
              align: 'right',
              dataIndex: 'dchsqkWckqLn',
              key: 'dchsqkWckqLn',
              scopedSlots: { customRender: 'dchsqkWckqLn' },
            },
            {
              title: '其中：路外',
              align: 'right',
              dataIndex: 'dchsqkWckqLw',
              key: 'dchsqkWckqLw',
              scopedSlots: { customRender: 'dchsqkWckqLw' },
            },
            {
              title: '其中：境外',
              align: 'right',
              dataIndex: 'dchsqkWckqJw',
              key: 'dchsqkWckqJw',
              scopedSlots: { customRender: 'dchsqkWckqJw' },
            },
          ]
        },
      ]

    },
    {
      dataIndex: 'submitFlag',
      align: 'center',
      title: "状态",
      scopedSlots: { customRender: 'submitFlag' },
      key: 'submitFlag',
      fixed: 'right',
      width: 80,
    },
    {
      dataIndex: 'action',
      align: 'center',
      title: "操作",
      scopedSlots: { customRender: 'action' },
      key: 'action',
      width: 100,
      fixed: 'right',
    }
  ]
  return cols
}

export default columns